<html>
<head><meta charset="utf-8"><title>meta data in crox events · t-compiler/wg-self-profile · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/index.html">t-compiler/wg-self-profile</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html">meta data in crox events</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180334453"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180334453" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180334453">(Nov 09 2019 at 22:17)</a>:</h4>
<p>have made the first part of supporting showing multiple  rustc invocations in one json file by setting the timestamp to duration from unix_epoch and the process_id in the crox events from the metadata.</p>



<a name="180335009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180335009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180335009">(Nov 09 2019 at 22:31)</a>:</h4>
<p>as the PR is now is possible to merge with <a href="https://github.com/catapult-project/catapult/blob/master/tracing/README.md" target="_blank" title="https://github.com/catapult-project/catapult/blob/master/tracing/README.md">trace2html </a> my giving multiple json files to convert to html.<br>
but for measureme I do not know how we want to specify that we want to merge multiple rustc invocations.<br>
shall there be an crox parameter only point to a directory where all logs is stored or shall we allow multiple file_prefixes?<br>
when merging the logs the minimum_duration is maybe needed but it can be an long and a short log that shall be merged is the same minimum_duration is used the short maybe is removed, how shall that be handled?</p>



<a name="180372576"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180372576" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180372576">(Nov 10 2019 at 17:48)</a>:</h4>
<p>have added a <code>dir</code> parameter and also supports multiple file_prefix to merge.<br>
do not think that the minimum-duration is a problem when profiling compiling rustc with minimum-duration=50us i get a log file on 139M <br>
but the minimum-duration parameter is needed at least for merging all crates in rustc when tried without I got a  2.6G large file :)</p>



<a name="180424723"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180424723" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180424723">(Nov 11 2019 at 13:51)</a>:</h4>
<p>Here is the current (rough) idea for a tool that will make using profiling more user-friendly: <a href="https://internals.rust-lang.org/t/compiler-profiling-survey/10969/18" target="_blank" title="https://internals.rust-lang.org/t/compiler-profiling-survey/10969/18">https://internals.rust-lang.org/t/compiler-profiling-survey/10969/18</a></p>



<a name="180424774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180424774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180424774">(Nov 11 2019 at 13:51)</a>:</h4>
<p>what I had in mind there was that the tool would create a whole new directory for each cargo session</p>



<a name="180424838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180424838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180424838">(Nov 11 2019 at 13:52)</a>:</h4>
<p>so that postprocessing would happen on an entire directory</p>



<a name="180425005"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180425005" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180425005">(Nov 11 2019 at 13:54)</a>:</h4>
<p>but some way of explicitly filtering file-prefixes (or listing them explicitly) is definitely a good idea.</p>



<a name="180425033"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180425033" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mw <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180425033">(Nov 11 2019 at 13:55)</a>:</h4>
<p><span class="user-mention" data-user-id="125799">@andjo403</span> I'm not sure I understand the minimum duration question.</p>



<a name="180425401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187831-t-compiler/wg-self-profile/topic/meta%20data%20in%20crox%20events/near/180425401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/187831-t-compiler/wg-self-profile/topic/meta.20data.20in.20crox.20events.html#180425401">(Nov 11 2019 at 14:00)</a>:</h4>
<p>I was thinking that maybe we needed to have the minimum duration per crate but think it works with one common</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>